Sha256: 9bb2ae886e1521b2d8dd28b8c3497e3309854ee898ae2a6c05bd7e2473b9c7a7

Contents?: true

Size: 224 Bytes

Versions: 5

Compression:

Stored size: 224 Bytes

Contents

class CreateTables < ActiveRecord::Migration
  def change
    create_table :users do |t|
      t.string :user_name
    end

    create_table :roles do |t|
      t.references :user
      t.string :role_name
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dynamic-fields-for-1.1.0 spec/rails_app/db/migrate/001_create_tables.rb
dynamic-fields-for-1.0.4 spec/rails_app/db/migrate/001_create_tables.rb
dynamic-fields-for-1.0.3 spec/rails_app/db/migrate/001_create_tables.rb
dynamic-fields-for-1.0.2 spec/rails_app/db/migrate/001_create_tables.rb
dynamic-fields-for-1.0.1 spec/rails_app/db/migrate/001_create_tables.rb