Sha256: 2397a84a43d3ea5dcf8d0b04e45542ac4c94444bf52cc69487d7433d390b3cc1

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

class CreateShowTable < ActiveRecord::Migration
	
	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

2 entries across 2 versions & 1 rubygems

Version Path
gdshowsdb-0.9.1 lib/gdshowsdb/db/migrations/003_create_show_table.rb
gdshowsdb-0.9.0 lib/gdshowsdb/db/migrations/003_create_show_table.rb