scinote-web/db/migrate/20150715122019_create_logs.rb

10 lines
218 B
Ruby
Raw Normal View History

2017-06-30 16:23:28 +08:00
class CreateLogs < ActiveRecord::Migration[4.2]
2016-02-12 23:52:43 +08:00
def change
create_table :logs do |t|
2017-01-26 23:30:31 +08:00
t.integer :team_id, null: false
t.string :message, null: false
2016-02-12 23:52:43 +08:00
end
2017-01-26 23:30:31 +08:00
add_foreign_key :logs, :teams
2016-02-12 23:52:43 +08:00
end
end