You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
educoder/db/migrate/20190322065716_create_messa...

12 lines
259 B

class CreateMessageDetails < ActiveRecord::Migration[5.2]
def change
create_table :message_details do |t|
t.longtext :content
t.integer :message_id
t.timestamps
end
add_index :message_details, :message_id
end
end