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