tracks/db/migrate/004_notes.rb

17 lines
410 B
Ruby
Raw Normal View History

# typed: false
2019-05-13 18:42:57 +02:00
class Notes < ActiveRecord::Migration[5.2]
def self.up
create_table :notes do |t|
t.column :user_id, :integer, :null => false
t.column :project_id, :integer, :null => false
t.column :body, :text
t.column :created_at, :datetime
t.column :updated_at, :datetime
end
end
def self.down
drop_table :notes
end
end