Created
July 17, 2012 03:19
-
-
Save bcamarda/3126795 to your computer and use it in GitHub Desktop.
fun times
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
begin | |
ActiveRecord::Schema.define do | |
create_table :listings do |table| | |
table.column :url, :string | |
table.column :title, :string | |
table.column :authors_email, :string | |
table.column :emailed_at, :datetime | |
table.column :created_at, :datetime | |
table.column :updated_at, :datetime | |
end | |
end | |
rescue ActiveRecord::StatementInvalid => e | |
end | |
begin | |
ActiveRecord::Schema.define do | |
create_table :user_inputs do |table| | |
table.column :user_name, :string, :null => false | |
table.column :user_email, :string, :null => false | |
table.column :search_url, :string, :null => false | |
table.column :created_at, :datetime | |
table.column :updated_at, :datetime | |
end | |
end | |
rescue ActiveRecord::StatementInvalid => e | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment