Sha256: 6b4a725af98561e7e35d748fd06154da8515dbcc6585d6a608b3546f26ff6c2e

Contents?: true

Size: 621 Bytes

Versions: 10

Compression:

Stored size: 621 Bytes

Contents

class CreateAssetModels < ActiveRecord::Migration[4.2]
def change
    create_table :js_configurations do |t|
      t.integer :shop_id, limit: 8
      t.string :label, default: 'Default'
      t.string :locale, default: 'en'
    end

    create_table :widget_configurations do |t|
      t.integer :shop_id, limit: 8
      t.string :label, default: 'Default'
      t.string :locale, default: 'en'
      t.string :background_color, default: '#FFFFFF'
    end

    add_foreign_key :js_configurations, :disco_app_shops, column: :shop_id
    add_foreign_key :widget_configurations, :disco_app_shops, column: :shop_id
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
disco_app-0.16.1.pre.sidekiq.pre.6.pre.release test/dummy/db/migrate/20160530160739_create_asset_models.rb
disco_app-0.14.1 test/dummy/db/migrate/20160530160739_create_asset_models.rb
disco_app-0.14.2 test/dummy/db/migrate/20160530160739_create_asset_models.rb
disco_app-0.15.0 test/dummy/db/migrate/20160530160739_create_asset_models.rb
disco_app-0.16.0 test/dummy/db/migrate/20160530160739_create_asset_models.rb
disco_app-0.14.4 test/dummy/db/migrate/20160530160739_create_asset_models.rb
disco_app-0.14.3 test/dummy/db/migrate/20160530160739_create_asset_models.rb
disco_app-0.16.1 test/dummy/db/migrate/20160530160739_create_asset_models.rb
disco_app-0.15.2 test/dummy/db/migrate/20160530160739_create_asset_models.rb
disco_app-0.14.0 test/dummy/db/migrate/20160530160739_create_asset_models.rb