Adding domain blocks
This commit is contained in:
		
							
								
								
									
										10
									
								
								db/migrate/20161009120834_create_domain_blocks.rb
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								db/migrate/20161009120834_create_domain_blocks.rb
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
class CreateDomainBlocks < ActiveRecord::Migration[5.0]
 | 
			
		||||
  def change
 | 
			
		||||
    create_table :domain_blocks do |t|
 | 
			
		||||
      t.string :domain, null: false, default: ''
 | 
			
		||||
      t.timestamps
 | 
			
		||||
    end
 | 
			
		||||
 | 
			
		||||
    add_index :domain_blocks, :domain, unique: true
 | 
			
		||||
  end
 | 
			
		||||
end
 | 
			
		||||
@@ -10,7 +10,7 @@
 | 
			
		||||
#
 | 
			
		||||
# It's strongly recommended that you check this file into your version control system.
 | 
			
		||||
 | 
			
		||||
ActiveRecord::Schema.define(version: 20161006213403) do
 | 
			
		||||
ActiveRecord::Schema.define(version: 20161009120834) do
 | 
			
		||||
 | 
			
		||||
  # These are extensions that must be enabled in order to support this database
 | 
			
		||||
  enable_extension "plpgsql"
 | 
			
		||||
@@ -51,6 +51,13 @@ ActiveRecord::Schema.define(version: 20161006213403) do
 | 
			
		||||
    t.index ["account_id", "target_account_id"], name: "index_blocks_on_account_id_and_target_account_id", unique: true, using: :btree
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  create_table "domain_blocks", force: :cascade do |t|
 | 
			
		||||
    t.string   "domain",     default: "", null: false
 | 
			
		||||
    t.datetime "created_at",              null: false
 | 
			
		||||
    t.datetime "updated_at",              null: false
 | 
			
		||||
    t.index ["domain"], name: "index_domain_blocks_on_domain", unique: true, using: :btree
 | 
			
		||||
  end
 | 
			
		||||
 | 
			
		||||
  create_table "favourites", force: :cascade do |t|
 | 
			
		||||
    t.integer  "account_id", null: false
 | 
			
		||||
    t.integer  "status_id",  null: false
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user