Class: CreateDomains

Inherits:
Object
  • Object
show all
Defined in:
lib/domain_handler.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



93
94
95
96
97
98
99
100
101
102
103
104
105
# File 'lib/domain_handler.rb', line 93

def change
    create_table :domains, id: false, primary_key: :domain_id do |t|
        t.references :shop, foreign_key: true
        t.string :host, null: false, default: ''
        t.string :localization
        t.string :market_web_presence
        t.boolean :ssl_enabled, null: false
        t.string :url
        t.string :domain_id
        t.index :domain_id, unique: true
        t.timestamps
    end
end