From db41eb8a6ea88b854bf5cd11070ea4245e1639c5 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sat, 2 Nov 2013 12:01:31 -0700 Subject: Added ActiveRecord::Base#enum for declaring enum attributes where the values map to integers in the database, but can be queried by name --- activerecord/test/schema/schema.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'activerecord/test/schema/schema.rb') diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 88a686d436..5f7ce2c15c 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -94,6 +94,7 @@ ActiveRecord::Schema.define do create_table :books, :force => true do |t| t.integer :author_id t.column :name, :string + t.column :status, :integer, default: 0 end create_table :booleans, :force => true do |t| -- cgit v1.2.3