Class: CreateDomains
- Inherits:
-
Object
- Object
- CreateDomains
- Defined in:
- lib/domain_handler.rb
Instance Method Summary collapse
Instance Method Details
#change ⇒ Object
94 95 96 97 98 99 100 101 102 103 104 105 106 |
# File 'lib/domain_handler.rb', line 94 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. end end |