Sha256: 7177dad5fa8ced5045b8ca99deb9fd3f4a63f305bc57eef5fcea89a80fa84062

Contents?: true

Size: 647 Bytes

Versions: 5

Compression:

Stored size: 647 Bytes

Contents

require 'active_record'

ActiveRecord::Base.establish_connection adapter: "sqlite3", database: ":memory:"

ActiveRecord::Migrator.up "db/migrate"

ActiveRecord::Migration.create_table :users do |t|
  t.string :name
  t.string :type
  t.integer :clan_id
  t.integer :profile_id
  t.timestamps
end

ActiveRecord::Migration.create_table :rebel_profiles do |t|
  t.string :serial_data
  t.timestamps
end

ActiveRecord::Migration.create_table :imperial_profiles do |t|
  t.string :analog_data
  t.timestamps
end

ActiveRecord::Migration.create_table :clans do |t|
  t.string :name
  t.integer :strength, default: 50
  t.boolean :cool
  t.timestamps
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
acts_as-0.2.2 spec/support/active_record.rb
acts_as-0.2.0 spec/support/active_record.rb
acts_as-0.1.1 spec/support/active_record.rb
acts_as-0.1.0 spec/support/active_record.rb
acts_as-0.0.3 spec/support/active_record.rb