diff options
Diffstat (limited to 'db')
-rw-r--r-- | db/migrate/004_create_info_requests.rb | 12 | ||||
-rw-r--r-- | db/schema.rb | 7 |
2 files changed, 18 insertions, 1 deletions
diff --git a/db/migrate/004_create_info_requests.rb b/db/migrate/004_create_info_requests.rb new file mode 100644 index 000000000..29a3a9f22 --- /dev/null +++ b/db/migrate/004_create_info_requests.rb @@ -0,0 +1,12 @@ +class CreateInfoRequests < ActiveRecord::Migration + def self.up + create_table :info_requests do |t| + t.column :title, :text + t.column :user_id, :integer + end + end + + def self.down + drop_table :info_requests + end +end diff --git a/db/schema.rb b/db/schema.rb index ab31f97d6..de6ac6216 100644 --- a/db/schema.rb +++ b/db/schema.rb @@ -2,7 +2,12 @@ # migrations feature of ActiveRecord to incrementally modify your database, and # then regenerate this schema definition. -ActiveRecord::Schema.define(:version => 2) do +ActiveRecord::Schema.define(:version => 4) do + + create_table "info_requests", :force => true do |t| + t.column "title", :text + t.column "user_id", :integer + end create_table "sessions", :force => true do |t| t.column "session_id", :string |