Sha256: 78e51b6dcf46479dd8275f3594a967df1bb56561ea0d49b6ee52edd417291399

Contents?: true

Size: 224 Bytes

Versions: 5

Compression:

Stored size: 224 Bytes

Contents

class CreateModel < ActiveRecord::Migration

  def self.up
    create_table :models do |t|
      t.string :string_field
      t.references :associated_model
    end
  end

  def self.down
    drop_table :models
  end
  
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rspec_candy-0.3.1 spec/shared/app_root/db/migrate/001_create_model.rb
rspec_candy-0.3.0 spec/shared/app_root/db/migrate/001_create_model.rb
rspec_candy-0.2.10 spec/shared/app_root/db/migrate/001_create_model.rb
rspec_candy-0.2.9 spec/shared/app_root/db/migrate/001_create_model.rb
rspec_candy-0.2.8 spec/shared/app_root/db/migrate/001_create_model.rb