Sha256: c261725fcd6bbaa5cd5098cc0f3422affa4f14f44a94b9c696b0bd41db1391d9
Contents?: true
Size: 797 Bytes
Versions: 5
Compression:
Stored size: 797 Bytes
Contents
class CreateMasterDataStatuses < ActiveRecord::Migration<%= migration_version %> def self.up create_table :master_data_statuses do |t| t.string :spec_name, limit: 255, null: false, default: '', comment: 'spec name' 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[spec_name name], name: 'idx_master_data_statuses_1', unique: true add_index :master_data_statuses, %i[spec_name name version], name: 'idx_master_data_statuses_2' end def self.down drop_table :master_data_statuses end end
Version data entries
5 entries across 5 versions & 1 rubygems