aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/schema.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2013-11-02 12:01:31 -0700
committerDavid Heinemeier Hansson <david@loudthinking.com>2013-11-02 12:01:31 -0700
commitdb41eb8a6ea88b854bf5cd11070ea4245e1639c5 (patch)
tree7ce7308e9b1a46bb61ece82f43af1338eb64d501 /activerecord/test/schema/schema.rb
parentdeaf285824fa7d2aaf24619eefdb0893c0069bc0 (diff)
downloadrails-db41eb8a6ea88b854bf5cd11070ea4245e1639c5.tar.gz
rails-db41eb8a6ea88b854bf5cd11070ea4245e1639c5.tar.bz2
rails-db41eb8a6ea88b854bf5cd11070ea4245e1639c5.zip
Added ActiveRecord::Base#enum for declaring enum attributes where the values map to integers in the database, but can be queried by name
Diffstat (limited to 'activerecord/test/schema/schema.rb')
-rw-r--r--activerecord/test/schema/schema.rb1
1 files changed, 1 insertions, 0 deletions
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|