Skip to content

Instantly share code, notes, and snippets.

@smoovej
Created February 19, 2014 22:42
Show Gist options
  • Save smoovej/9103210 to your computer and use it in GitHub Desktop.
Save smoovej/9103210 to your computer and use it in GitHub Desktop.
class Introductions < ActiveRecord::Migration def change create_table :introductions do |t| t.references :account t.string :recipient_address t.string :recipient_name t.string :subject t.text :body t.string :message_id t.integer node_id t.timestamps end add_index :introductions, :account_id end end
class Introductions < ActiveRecord::Migration
def change
create_table :introductions do |t|
t.references :account
t.string :recipient_address
t.string :recipient_name
t.string :subject
t.text :body
t.string :message_id
t.integer node_id
t.timestamps
end
add_index :introductions, :account_id
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment