scinote-web/db/migrate/20150715122019_create_logs.rb
2017-06-30 10:23:28 +02:00

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