Hello tinyforms

This commit is contained in:
2020-04-05 23:29:32 +02:00
commit 917051c7ea
101 changed files with 9649 additions and 0 deletions

View 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

View 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

View 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

View 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