]> cat aescling's git repositories - mastodon.git/commitdiff
add a local_only column to the statuses table
authorErin <sylphofelectricity@gmail.com>
Sun, 10 Dec 2017 22:41:25 +0000 (16:41 -0600)
committerErin <sylphofelectricity@gmail.com>
Sun, 10 Dec 2017 22:41:25 +0000 (16:41 -0600)
app/models/status.rb
db/migrate/20171210213213_add_local_only_flag_to_statuses.rb [new file with mode: 0644]
db/schema.rb

index 70cfdc1c7ef393e3858a30e2c450e0b11533a7ce..2940441395ed0926e8f7ef5dc4b0fee504b15e9c 100644 (file)
@@ -23,6 +23,7 @@
 #  account_id             :integer          not null
 #  application_id         :integer
 #  in_reply_to_account_id :integer
+#  local_only             :boolean
 #
 
 class Status < ApplicationRecord
diff --git a/db/migrate/20171210213213_add_local_only_flag_to_statuses.rb b/db/migrate/20171210213213_add_local_only_flag_to_statuses.rb
new file mode 100644 (file)
index 0000000..af1e29d
--- /dev/null
@@ -0,0 +1,5 @@
+class AddLocalOnlyFlagToStatuses < ActiveRecord::Migration[5.1]
+  def change
+    add_column :statuses, :local_only, :boolean
+  end
+end
index 4cf886a00fe3f0279450339b2db8637431e681f1..de74a300c30cbde2b23fe63cf5724d32e9cc5f22 100644 (file)
@@ -10,7 +10,7 @@
 #
 # It's strongly recommended that you check this file into your version control system.
 
-ActiveRecord::Schema.define(version: 20171130000000) do
+ActiveRecord::Schema.define(version: 20171210213213) do
 
   # These are extensions that must be enabled in order to support this database
   enable_extension "plpgsql"
@@ -420,6 +420,7 @@ ActiveRecord::Schema.define(version: 20171130000000) do
     t.bigint "account_id", null: false
     t.bigint "application_id"
     t.bigint "in_reply_to_account_id"
+    t.boolean "local_only"
     t.index ["account_id", "id"], name: "index_statuses_on_account_id_id"
     t.index ["conversation_id"], name: "index_statuses_on_conversation_id"
     t.index ["in_reply_to_id"], name: "index_statuses_on_in_reply_to_id"