Sha256: c13f79977a3683a87039f5b23582f691467924ff0de5d3937aa6dc37d92f215a

Contents?: true

Size: 504 Bytes

Versions: 4

Compression:

Stored size: 504 Bytes

Contents

require 'active_record'
ActiveRecord::Base.establish_connection(adapter: 'sqlite3', database: ':memory:')

ActiveRecord::Migration.create_table :lite_people do |t|
  t.string  :name
  t.date    :dob
  
  t.timestamps
end

ActiveRecord::Migration.create_table :people do |t|
  t.string  :name
  t.date    :dob
  t.integer :zodiac_sign_id
  
  t.timestamps
end

ActiveRecord::Migration.create_table :custom_people do |t|
  t.string  :name
  t.date    :dob
  t.integer :custom_sign_id
  
  t.timestamps
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
zodiac-0.2.10 spec/support/active_record.rb
zodiac-0.2.9 spec/support/active_record.rb
zodiac-0.2.8 spec/support/active_record.rb
zodiac-0.2.7 spec/support/active_record.rb