Sha256: 1557bac1f0b3d4959d34e1baf6cd4499c3be66c71dba7c71d7cd886e8b5ad57c
Contents?: true
Size: 418 Bytes
Versions: 7
Compression:
Stored size: 418 Bytes
Contents
class CreateShowTable < ActiveRecord::Migration[5.0] def up create_table :shows, :id => false do |t| t.string :uuid, :primary => true, :null => false t.integer :year t.integer :month t.integer :day t.integer :position t.string :venue t.string :city t.string :state t.string :country end add_index :shows, [:uuid, :year, :month, :day] end def down drop_table :shows end end
Version data entries
7 entries across 7 versions & 1 rubygems