Sha256: 06b33874e22cafbe6e137b9a627dd649f8859d474becc2cc74c15afdf7c97540
Contents?: true
Size: 670 Bytes
Versions: 1
Compression:
Stored size: 670 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.timestamps end ActiveRecord::Migration.create_table :rebel_profiles do |t| t.integer :rebel_id t.string :serial_data t.timestamps end ActiveRecord::Migration.create_table :imperial_profiles do |t| t.integer :imperial_id 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
acts_as-0.0.2 | spec/support/active_record.rb |