From e396e0f593ef3765c8fb070e7879dd15bd998d75 Mon Sep 17 00:00:00 2001 From: Georg G Date: Tue, 5 Jan 2016 18:03:39 +0100 Subject: [PATCH] added some more fields to the users table --- db/migrate/20160105165913_add_export_fields_to_users.rb | 7 +++++++ db/schema.rb | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20160105165913_add_export_fields_to_users.rb diff --git a/db/migrate/20160105165913_add_export_fields_to_users.rb b/db/migrate/20160105165913_add_export_fields_to_users.rb new file mode 100644 index 00000000..4b98e6e5 --- /dev/null +++ b/db/migrate/20160105165913_add_export_fields_to_users.rb @@ -0,0 +1,7 @@ +class AddExportFieldsToUsers < ActiveRecord::Migration + def change + add_column :users, :export_url, :string + add_column :users, :export_processing, :boolean, default: false, null: false + add_column :users, :export_created_at, :datetime + end +end diff --git a/db/schema.rb b/db/schema.rb index 4ec72116..79959331 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -11,7 +11,7 @@ # # It's strongly recommended that you check this file into your version control system. -ActiveRecord::Schema.define(version: 20150826224857) do +ActiveRecord::Schema.define(version: 20160105165913) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -273,6 +273,9 @@ ActiveRecord::Schema.define(version: 20150826224857) do t.datetime "confirmation_sent_at" t.string "unconfirmed_email" t.boolean "show_foreign_themes", default: true, null: false + t.string "export_url" + t.boolean "export_processing", default: false, null: false + t.datetime "export_created_at" end add_index "users", ["confirmation_token"], name: "index_users_on_confirmation_token", unique: true, using: :btree