mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
9 lines
218 B
Ruby
9 lines
218 B
Ruby
class CreateLogs < ActiveRecord::Migration[4.2]
|
|
def change
|
|
create_table :logs do |t|
|
|
t.integer :team_id, null: false
|
|
t.string :message, null: false
|
|
end
|
|
add_foreign_key :logs, :teams
|
|
end
|
|
end
|