Hello tinyforms
This commit is contained in:
12
db/migrate/20200405112929_create_authentications.rb
Normal file
12
db/migrate/20200405112929_create_authentications.rb
Normal file
@@ -0,0 +1,12 @@
|
||||
class CreateAuthentications < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :authentications do |t|
|
||||
t.integer :user_id
|
||||
t.string :access_token
|
||||
t.string :refresh_token
|
||||
t.datetime :expires_at
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
11
db/migrate/20200405114101_create_users.rb
Normal file
11
db/migrate/20200405114101_create_users.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateUsers < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :users do |t|
|
||||
t.string :email
|
||||
t.string :name
|
||||
t.string :google_id
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
14
db/migrate/20200405121558_create_forms.rb
Normal file
14
db/migrate/20200405121558_create_forms.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
class CreateForms < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :forms do |t|
|
||||
t.integer :user_id
|
||||
t.string :google_spreadsheet_id
|
||||
t.string :title
|
||||
t.string :token
|
||||
t.string :thank_you_url
|
||||
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
11
db/migrate/20200405161905_create_submissions.rb
Normal file
11
db/migrate/20200405161905_create_submissions.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class CreateSubmissions < ActiveRecord::Migration[6.0]
|
||||
def change
|
||||
create_table :submissions do |t|
|
||||
t.integer :form_id
|
||||
t.json :data, default: {}
|
||||
t.datetime :appended_at
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user