Skip to content

Instantly share code, notes, and snippets.

@bcamarda
Created July 17, 2012 03:19
Show Gist options
  • Save bcamarda/3126795 to your computer and use it in GitHub Desktop.
Save bcamarda/3126795 to your computer and use it in GitHub Desktop.
fun times
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