Show More
Commit Description:
fix user migration problem regarding validation...
Commit Description:
fix user migration problem regarding validation
git-svn-id: http://theory.cpe.ku.ac.th/grader/web/trunk@304 6386c4cd-e34a-4fa8-8920-d93eb39b512e
References:
File last commit:
Show/Diff file:
Action:
db/migrate/030_create_announcements.rb
| 15 lines
| 265 B
| text/x-ruby
| RubyLexer
|
|
r97 | class CreateAnnouncements < ActiveRecord::Migration | ||
def self.up | ||||
create_table :announcements do |t| | ||||
t.string :author | ||||
t.text :body | ||||
t.boolean :published | ||||
t.timestamps | ||||
end | ||||
end | ||||
def self.down | ||||
drop_table :announcements | ||||
end | ||||
end | ||||