Sha256: d69c7ff3a9424ad3dd80326c9cf97951d960cdf75476afe9f4a2f6c8177c15fb

Contents?: true

Size: 456 Bytes

Versions: 3

Compression:

Stored size: 456 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
			t.index :uuid, unique: true		
			t.index [:year, :month, :day, :position], unique: true
		end
	end

	def down
		drop_table :shows
	end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gdshowsdb-4.0.2 lib/gdshowsdb/db/migrations/003_create_show_table.rb
gdshowsdb-4.0.1 lib/gdshowsdb/db/migrations/003_create_show_table.rb
gdshowsdb-4.0.0 lib/gdshowsdb/db/migrations/003_create_show_table.rb