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.59 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.58 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.57 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.56 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.55 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.54 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.53 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.52 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.51 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.50 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.49 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.48 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.47 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.45 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.44 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.43 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.42 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.41 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.40 test/dummy/db/migrate/20140206211850_create_admin_states.rb
carnival-0.0.39 test/dummy/db/migrate/20140206211850_create_admin_states.rb