Sha256: 683f26f314bf5cc7a2649db047245391c72c1420a9def7b231d6cb514238b323
Contents?: true
Size: 1.06 KB
Versions: 13
Compression:
Stored size: 1.06 KB
Contents
class DbTypeMigration < ActiveRecord::Migration def self.up create_table "db_types", :force => true do |t| t.column :sample_timestamp, :timestamp t.column :sample_datetime, :datetime t.column :sample_date, :date t.column :sample_time, :time t.column :sample_decimal, :decimal, :precision => 15, :scale => 0 t.column :sample_small_decimal, :decimal, :precision => 3, :scale => 2 t.column :sample_default_decimal, :decimal t.column :sample_float, :float t.column :sample_binary, :binary t.column :sample_boolean, :boolean t.column :sample_string, :string, :default => '' t.column :sample_integer, :integer, :limit => 5 t.column :sample_integer_with_limit_2, :integer, :limit => 2 t.column :sample_integer_with_limit_8, :integer, :limit => 8 t.column :sample_integer_no_limit, :integer t.column :sample_integer_neg_default, :integer, :default => -1 t.column :sample_text, :text end end def self.down drop_table "db_types" end end class DbType < ActiveRecord::Base end
Version data entries
13 entries across 13 versions & 4 rubygems