Initial commit
This commit is contained in:
12
db/migrate/20190809133049_create_composers.rb
Normal file
12
db/migrate/20190809133049_create_composers.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateComposers < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :composers do |t|
|
||||
t.belongs_to :music_release, foreign_key: true
|
||||
t.string :name, null: false
|
||||
t.string :affiliation, null: false
|
||||
t.float :percentage, null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user