New annotation, because of db switch to mysql.
Background: sqlite has some problems with decimal option.
This commit is contained in:
parent
c2496aa4fd
commit
46450cebef
60 changed files with 623 additions and 568 deletions
|
|
@ -1,12 +1,3 @@
|
|||
# == Schema Information
|
||||
#
|
||||
# Table name: article_categories
|
||||
#
|
||||
# id :integer not null, primary key
|
||||
# name :string(255) default(""), not null
|
||||
# description :string(255)
|
||||
#
|
||||
|
||||
class ArticleCategory < ActiveRecord::Base
|
||||
has_many :articles
|
||||
|
||||
|
|
@ -14,3 +5,13 @@ class ArticleCategory < ActiveRecord::Base
|
|||
validates_uniqueness_of :name
|
||||
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
#
|
||||
# Table name: article_categories
|
||||
#
|
||||
# id :integer(4) not null, primary key
|
||||
# name :string(255) default(""), not null
|
||||
# description :string(255)
|
||||
#
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue