From 34413615683677e26213263fb98f63b5aab64872 Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Sat, 12 Mar 2016 20:47:22 +0100 Subject: Adding simple_form, adding profile settings, header image --- .../20160312193225_add_attachment_header_to_accounts.rb | 11 +++++++++++ db/schema.rb | 6 +++++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 db/migrate/20160312193225_add_attachment_header_to_accounts.rb (limited to 'db') diff --git a/db/migrate/20160312193225_add_attachment_header_to_accounts.rb b/db/migrate/20160312193225_add_attachment_header_to_accounts.rb new file mode 100644 index 000000000..bdd09c367 --- /dev/null +++ b/db/migrate/20160312193225_add_attachment_header_to_accounts.rb @@ -0,0 +1,11 @@ +class AddAttachmentHeaderToAccounts < ActiveRecord::Migration + def self.up + change_table :accounts do |t| + t.attachment :header + end + end + + def self.down + remove_attachment :accounts, :header + end +end diff --git a/db/schema.rb b/db/schema.rb index b5026c0c1..9710bb965 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: 20160306172223) do +ActiveRecord::Schema.define(version: 20160312193225) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" @@ -36,6 +36,10 @@ ActiveRecord::Schema.define(version: 20160306172223) do t.string "avatar_content_type" t.integer "avatar_file_size" t.datetime "avatar_updated_at" + t.string "header_file_name" + t.string "header_content_type" + t.integer "header_file_size" + t.datetime "header_updated_at" end add_index "accounts", ["username", "domain"], name: "index_accounts_on_username_and_domain", unique: true, using: :btree -- cgit