# File lib/motion_record/schema/migration.rb, line 16 def primary_key nil end
class MotionRecord::Schema::Migration
Public Class Methods
create_table()
click to toggle source
# File lib/motion_record/schema/migration.rb, line 20 def create_table table = Schema::TableDefinition.new(table_name, id: false) table.integer :version, :null => false table.index :version, :unique => true table.execute end
primary_key()
click to toggle source
table_exists?()
click to toggle source
# File lib/motion_record/schema/migration.rb, line 12 def table_exists? connection.table_exists?(table_name) end
table_name()
click to toggle source
# File lib/motion_record/schema/migration.rb, line 8 def table_name "schema_migrations" end