about summary refs log tree commit diff
path: root/db
diff options
context:
space:
mode:
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20160322193748_add_avatar_remote_url_to_accounts.rb5
-rw-r--r--db/schema.rb3
2 files changed, 7 insertions, 1 deletions
diff --git a/db/migrate/20160322193748_add_avatar_remote_url_to_accounts.rb b/db/migrate/20160322193748_add_avatar_remote_url_to_accounts.rb
new file mode 100644
index 000000000..9dc4b027f
--- /dev/null
+++ b/db/migrate/20160322193748_add_avatar_remote_url_to_accounts.rb
@@ -0,0 +1,5 @@
+class AddAvatarRemoteUrlToAccounts < ActiveRecord::Migration
+  def change
+    add_column :accounts, :avatar_remote_url, :string, null: true, default: nil
+  end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 250b69f6d..d6702b36e 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: 20160316103650) do
+ActiveRecord::Schema.define(version: 20160322193748) do
 
   # These are extensions that must be enabled in order to support this database
   enable_extension "plpgsql"
@@ -40,6 +40,7 @@ ActiveRecord::Schema.define(version: 20160316103650) do
     t.string   "header_content_type"
     t.integer  "header_file_size"
     t.datetime "header_updated_at"
+    t.string   "avatar_remote_url"
   end
 
   add_index "accounts", ["username", "domain"], name: "index_accounts_on_username_and_domain", unique: true, using: :btree