Created
February 19, 2014 22:42
-
-
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
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
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