mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 07:10:12 +01:00
15 lines
395 B
Ruby
15 lines
395 B
Ruby
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
|