Initial commit
This commit is contained in:
15
db/migrate/20171231154902_create_projects.rb
Normal file
15
db/migrate/20171231154902_create_projects.rb
Normal file
@@ -0,0 +1,15 @@
|
||||
class CreateProjects < ActiveRecord::Migration[5.2]
|
||||
def change
|
||||
create_table :projects do |t|
|
||||
t.string :name, null: false
|
||||
t.string :client_name
|
||||
t.string :producer_name
|
||||
t.string :producer_address
|
||||
t.text :description
|
||||
t.text :details
|
||||
t.belongs_to :user, foreign_key: true, null: false
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user