Sha256: f82bf99c0cbebac71b1883ce74e7943a2f6e0c4326caa7882930eb0b04e4db53

Contents?: true

Size: 691 Bytes

Versions: 20

Compression:

Stored size: 691 Bytes

Contents

class CreateMasterDataStatuses < ActiveRecord::Migration<%= migration_version %>
  def self.up
    create_table :master_data_statuses do |t|
      t.string :name, limit: 255, null: false, comment: 'テーブル名'
      t.string :version, limit: 255, null: false, comment: 'ハッシュ値'
      t.datetime :created_at, null: false, comment: '作成日時'
      t.datetime :updated_at, null: false, comment: '更新日時'
    end

    add_index :master_data_statuses, %i[name], name: 'idx_master_data_statuses_1', unique: true
    add_index :master_data_statuses, %i[name version], name: 'idx_master_data_statuses_2'
  end

  def self.down
    drop_table :master_data_statuses
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
master_data_tool-0.19.1 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.19.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.18.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.17.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.16.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.15.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.14.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.13.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.12.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.11.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.10.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.9.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.8.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.7.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.6.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.5.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.4.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.3.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.2.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb
master_data_tool-0.1.0 lib/generators/master_data_tool/install/templates/create_master_data_statuses.rb.erb