diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-12 20:47:22 +0100 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-03-12 20:47:22 +0100 |
commit | 34413615683677e26213263fb98f63b5aab64872 (patch) | |
tree | 7e682e8709ecfd5347316ea39240789548795606 /db | |
parent | 1aa477ac2f0e9195497899691bb5cc16a7034c01 (diff) |
Adding simple_form, adding profile settings, header image
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/20160312193225_add_attachment_header_to_accounts.rb | 11 | ||||
-rw-r--r-- | db/schema.rb | 6 |
2 files changed, 16 insertions, 1 deletions
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 |