Sha256: 3351f53afa2dad8745ebf9fbe992650cab1b7384aa6c5e667663abe8cbc7c6c3

Contents?: true

Size: 217 Bytes

Versions: 29

Compression:

Stored size: 217 Bytes

Contents

class CreateAdminStates < ActiveRecord::Migration
  def change
    create_table :states do |t|
      t.string :name
      t.string :code

      t.references :country, index: true

      t.timestamps
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
carnival-0.0.38 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.37 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.36 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.35 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.34 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.33 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.26 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.11 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.10 test/dummy/db/migrate/20140206211850_create_admin_states.rb