working form
This commit is contained in:
11
db/migrate/20160907094436_create_proverbs.rb
Normal file
11
db/migrate/20160907094436_create_proverbs.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateProverbs < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :proverbs do |t|
|
||||
t.string :quote
|
||||
t.integer :author_id
|
||||
t.integer :user_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
9
db/migrate/20160907102427_create_users.rb
Normal file
9
db/migrate/20160907102427_create_users.rb
Normal file
@@ -0,0 +1,9 @@
|
||||
class CreateUsers < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :users do |t|
|
||||
t.string :email
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
10
db/migrate/20160907102456_create_authors.rb
Normal file
10
db/migrate/20160907102456_create_authors.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class CreateAuthors < ActiveRecord::Migration[5.0]
|
||||
def change
|
||||
create_table :authors do |t|
|
||||
t.string :name
|
||||
t.string :unique_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user