working form

This commit is contained in:
Senad Uka
2016-09-08 09:59:42 +02:00
parent ec1926dec6
commit 50df27b0c0
60 changed files with 76113 additions and 46 deletions

View 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

View 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

View 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