spec/spec_helper.rb in super_sti-0.2.1 vs spec/spec_helper.rb in super_sti-0.3.0
- old
+ new
@@ -17,11 +17,17 @@
ActiveRecord::Base.logger
ActiveRecord::Schema.define(:version => 1) do
create_table :accounts do |t|
t.float :balance
+ t.boolean :is_approved, :null => false
+ t.string :type, :null => false
end
+
+ create_table :basic_account_data do |t|
+ t.integer :basic_account_id, :null => false
+ end
create_table :bank_account_data do |t|
t.integer :bank_account_id, :null => false
t.integer :bank_id, :null => false
t.string :account_number, :null => false
@@ -42,9 +48,17 @@
t.integer :unusual_table_name_id, :null => false
end
create_table :unusual_foreign_key_data do |t|
t.integer :unusual_foreign_key, :null => false
+ end
+
+ create_table :scoped_accounts do |t|
+ t.boolean :is_live, :null => false
+ end
+
+ create_table :scoped_account_data do |t|
+ t.boolean :scoped_account_id, :null => false
end
end
require 'test_classes'
\ No newline at end of file